#1.算数运算符

#2.赋值  简单和复合

a = 10
a = a+10  #a+=10

a //=5

print(2**16)

#布尔
#注意 = 和 == 的区别

print(10>=a>=5)
# || &&  or and

#位运算 & |

# 0011
# 0010
# -----
# 1110

# 0001
# 0010
# 0011
print(3&2)
print(3|2)
print(3^2)#异或

password = 123456

#加密
new_pwd = password^7
print(new_pwd)

#解密
new_pwd = new_pwd^7
print(new_pwd)

a ,b = 10,20

# a = a^b
# b = a^b
# a = a^b
# print(
# a,b
# )

#左移右移

print(1<<10)#每左移一位,就*2
print(1024>>10)#每右移一位,就*2

#取反
print(~1)

print(0.1+0.2)#精度丢失问题



